#pragma once
#include "resource.h"
#include "CalendarFrame.h"

typedef CWinTraits<WS_OVERLAPPED | WS_SYSMENU, WS_EX_APPWINDOW | WS_EX_WINDOWEDGE> CMainFrameTraits;

//typedef CWinTraits<WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, WS_EX_APPWINDOW | WS_EX_WINDOWEDGE>

class CMainFrame
    : public CFrameWindowImpl<CMainFrame, ATL::CWindow, CMainFrameTraits>
{
public:
    DECLARE_FRAME_WND_CLASS(NULL, IDR_MAINFRAME)

    CMainFrame();
    ~CMainFrame();

    BEGIN_MSG_MAP_EX(CMainFrame)
        MSG_WM_CREATE(OnCreate)
        MSG_WM_ERASEBKGND(OnEraseBkgnd)
		CHAIN_MSG_MAP(CFrameWindowImpl)
    END_MSG_MAP()

protected:
    // message handler
    int     OnCreate(LPCREATESTRUCT lpCreateStruct);
    BOOL    OnEraseBkgnd(CDCHandle dc);

private:
    CCalendarFrame      m_oCalendar;
};